package main

import "fmt"

type Boy2 struct {
	name  string
	age   int
	hobby string
}

func newBoy2(name string, hobby string, age int) *Boy2 {
	return &Boy2{
		name:  name,
		age:   age,
		hobby: hobby,
	}
}

func (b *Boy2) passYear() {
	b.age++
}
func main() {
	baim0 := newBoy2("baim0", "eat", 25)
	baim0.passYear()
	fmt.Println(baim0.age)
}
